package com.chen.blue.service.business;

import com.chen.blue.domain.model.business.ContestPersonInfoModel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.blue.domain.vo.business.ContestPersonInfoVo;
import com.chen.blue.exception.e.DtoNullException;
import com.chen.blue.result.DataResult;

import java.util.List;

/**
 * <p>
 * 竞赛人员信息表 服务类
 * </p>
 *
 * @author CLT
 * @since 2024-05-26
 */
public interface IContestPersonInfoService extends IService<ContestPersonInfoModel> {

    /**
     * 删除对应ID人员信息
     *
     * @param personId
     * @return
     */
    boolean delete(Long personId) throws DtoNullException;

    /**
     * 根据竞赛ID查询关联的人员信息
     *
     * @param applyId
     * @return
     */
    DataResult<List<ContestPersonInfoVo>> queryByApplyId(Long applyId) throws DtoNullException;

}
